package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.EsignTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * e签宝任务
 * 创建时间 2020/6/20 2:06 PM
 * 修改时间 2020/6/20 2:06 PM
 * @author chy
 */
@Repository
@Mapper
public interface EsignTaskDao {
    Integer insert(EsignTaskEntity esignTask);

    Integer update(EsignTaskEntity esignTask);

    Integer deleteByKey(@Param("key") Long key);

    EsignTaskEntity getByKey(@Param("key") Long key);

    List<EsignTaskEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    EsignTaskEntity getByFormId(@Param("corpid") String corpid, @Param("type") Integer type, @Param("formId") Long formId, @Param("dataId") Long dataId);

    EsignTaskEntity getByTaskId(@Param("taskId") String taskId);
}
